import Vue from 'vue';
import Vuex from 'vuex';

Vue.use(Vuex);

export default new Vuex.Store({
  state: {
    pageName: 'vue2.6',
  },
  mutations: {
    SET_PAGENAME(state, val) {
      state.pageName = val;
    },
  },
  actions: {
    ON_PAGENAME({ commit }, val) {
      commit('SET_PAGENAME', val);
    },
  },
  modules: {},
});
